package com.xsd.awen.utils;

public class Objects {

    public static boolean isEmpty(Object...objs){
        if( objs == null || objs.length == 0 ){
            throw new RuntimeException("objs is null");
        }
        for( Object obj : objs ){
            if(isEmpty(obj))return true;
        }
        return false;
    }

    public static boolean isEmpty(Object obj){
        if( obj instanceof String ){
            return Strings.isEmpty(obj);
        }else{
            return obj == null;
        }
    }
}
